<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>${sessionScope.web_name}登录</title>
        <script type="text/javascript" src="<%=request.getContextPath()%>/resources/assets/common/js/constants.js"></script>
		<link href="<%=request.getContextPath()%>/resources/assets/login/css/index_style.css" rel="stylesheet" type="text/css">
	    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/assets/login/css/bootstrap.min.css">
	    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/assets/login/css/login.css">
	    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/assets/login/css/awesomeFonts.css">
	    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/assets/login/css/version_3.css">

	</head>
	<body  onkeypress="enterKey()">
		<!-- BEGIN LOGIN -->
		<div class="container bg-1" id="demo">
			 <div class="loginContainer">
			  <!--title bg-->
			 	<div class="content-logo"></div>

						<!-- BEGIN LOGIN FORM -->
					<form class="form-vertical " id="loginForm" action="<%=request.getContextPath()%>/system/loginCheck" method="post">
						<div class="login">
							 <img src="<%=request.getContextPath()%>${sessionScope.web_loginimg}" class="img1">
							 <c:if test="${ flg == 1 }">
								<div class="user judge" style="color:#ED5E4F;margin-left:22px">
						       		${errorMsg}
						        	<span class="delete">×</span>
						      	</div>
							</c:if>
							  <div class="input-group">
							    <span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
							    <input  class="form-control" aria-describedby="basic-addon1" type="text" placeholder="用户名" name="userName" id="userName">
							  </div>
							  <div class="input-group"> <span class="input-group-addon"> <i class="fa fa-key" aria-hidden="true"></i></span>
							    <input  type="password" class="form-control" placeholder="密码" aria-describedby="basic-addon1" name="userPwd" id="userPwd">
							  </div>
							  <div class="btn-group">
							  <input type="submit" value="登录" id="loginBtn" class="btn btn-info">
							  </div>
						</div>
					</form>
			</div>
			<div class="canvaszz"> </div>
			<canvas id="canvas" ></canvas>
		</div>
			<!-- END LOGIN FORM -->
			<!-- BEGIN FORGOT PASSWORD FORM -->

			<!-- END FORGOT PASSWORD FORM -->
			<!-- BEGIN REGISTRATION FORM -->

			<!-- END REGISTRATION FORM -->
		<!-- END LOGIN -->
		<!-- BEGIN COPYRIGHT -->
			<script src="<%=request.getContextPath()%>/resources/assets/login/js/jquery-1.10.1.min.js"></script>
				    <script src="<%=request.getContextPath()%>/resources/assets/plugins/system/js/app.js" type="text/javascript"></script>
 	    <script src="<%=request.getContextPath()%>/resources/assets/plugins/system/js/jquery.validate.min.js" type="text/javascript"></script>
	   <%--  <script src="<%=request.getContextPath()%>/resources/assets/plugins/system/js/form-validation.js" type="text/javascript"></script> --%>


		<!-- END PAGE LEVEL SCRIPTS -->

		<script src="<%=request.getContextPath()%>/resources/assets/plugins/system/js/login-soft.js" type="text/javascript"></script>

		<script src="<%=request.getContextPath()%>/resources/assets/login/js/bootstrap.min.js"></script>
		<script src="<%=request.getContextPath()%>/resources/assets/login/js/login.js"></script>

		<script>

		    $(function(){
		    	$("#loginBtn").bind("click",function(){
		    		$("#loginForm").submit();
		    	})
		    })

			jQuery(document).ready(function() {
			  Login.init();
			});
		</script>
        <script type="text/javascript">
            function enterKey(){
			    if(window.event.keyCode == 13){
			    	$("#loginForm").submit();
			    }
			}
        </script>
		<!--
		<script src="<%=request.getContextPath()%>/resources/assets/plugins/system/js/jquery.backstretch.min.js" type="text/javascript"></script>
		-->

    </body>
</html>